﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAL;
using Public;
using System.Data;

namespace BUL
{
    public class AdvertisementBUL
    {
        AdvertsimentDAL cls = new AdvertsimentDAL();
        public DataTable getAllProduct()
        {
            return cls.getAllProduct();
        }
        public int saveAdvertisement(AdvertedProd advertedP)
        {
            return cls.saveAdvertisement(advertedP);
        }
        public int saveAdvertedProducts(AdvertedProd advertedP)
        {
            return cls.saveAdvertedProducts(advertedP);
        }
        public DataTable checkTodayFrom(string today)
        {
            return cls.checkTodayFrom(today);
        }
        public DataTable getAdvertedProduct(int advertId)
        {
            return cls.getAdvertedProduct(advertId);
        }
        public int updateWorth(Product product)
        {
            return cls.updateWorth(product);
        }
    }
}
